package org.example.ch01;

/**
 * @author yang
 * @date 2024-03-14
 */
public class TestMain {
    public static void main(String[] args) {
        //初始化音乐家对象
        Musician musician = new Musician();
        //初始化乐器
        Play play = new Piano();
        //音乐家演奏乐器的方法
        musician.doPlay(play);
    }
}
